#define _CRT_SECURE_NO_WARNINGS 1


bool isUnique(char* astr) {
    int* p = malloc(26 * sizeof(int));
    memset(p, 0, 26 * sizeof(int));
    int len = strlen(astr);
    for (int i = 0; i < len; i++)
    {
        p[astr[i] - 'a']++;
    }
    for (int i = 0; i < 26; i++)
    {
        if (p[i] > 1)
            return false;
    }
    return true;
}